package cn.kgc.smbms.mapper;

import cn.kgc.smbms.pojo.User;
import cn.kgc.smbms.pojo.UserExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    //登陆
    User login(User user);
    //查询所有
    List<User> selectAllUserByMoreValue(@Param("pageNo")int pageNo,@Param("pageSize")int pageSize,
                                @Param("userName") String userName,
                                @Param("userRole")String userRole);
    //查询总条数
    int totalCount();

//根据id删除
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);
    //根据Id查询
    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User user);
}